<script setup>
const handleClick = () => {
  console.log('click')
}

const tableData = [
  {
    date: '2016-05-03',
    name: 'Tom',
    state: 'California',
    city: 'Los Angeles',
    address: 'No. 189, Grove St, Los Angeles',
    zip: 'CA 90036',
    tag: 'Home',
  },
  {
    date: '2016-05-02',
    name: 'Tom',
    state: 'California',
    city: 'Los Angeles',
    address: 'No. 189, Grove St, Los Angeles',
    zip: 'CA 90036',
    tag: 'Office',
  },
  {
    date: '2016-05-04',
    name: 'Tom',
    state: 'California',
    city: 'Los Angeles',
    address: 'No. 189, Grove St, Los Angeles',
    zip: 'CA 90036',
    tag: 'Home',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    state: 'California',
    city: 'Los Angeles',
    address: 'No. 189, Grove St, Los Angeles',
    zip: 'CA 90036',
    tag: 'Office',
  },
]
</script>

<template>
  <div>
    <div class="cus-header">
        <el-card>
            <div class="search">
                <div>
                    课程：
                    <el-input v-model="input" style="width: 240px" placeholder="请输入课程名称" />
                </div>
                <div style="margin-left: 20px;">
                    课节：
                    <el-input v-model="input" style="width: 240px" placeholder="请输入课节" />
                </div>
                <div style="margin-left: 20px;">
                    姓名：
                    <el-input v-model="input" style="width: 240px" placeholder="请输入姓名" />
                </div>
                <div style="margin-left: 20px;">
                    <el-button style="width: 80px;" type="primary">搜索</el-button>
                </div>
            </div>
            
        </el-card>
    </div>
    <div class="cus-body">
        <el-card style="min-height: 650px;">
            <el-table :data="tableData" style="width: 100%">
                <el-table-column fixed prop="date" label="课程编号" width="150" />
                <el-table-column prop="name" label="课程名称" width="120" />
                <el-table-column prop="state" label="课节编号" width="120" />
                <el-table-column prop="city" label="课节名称" width="120" />
                <el-table-column prop="address" label="上课时间" width="120" />
                <el-table-column prop="zip" label="地址" width="120" />
                <el-table-column prop="zip" label="课程名称" width="120" />
                <el-table-column prop="zip" label="课程分数" width="120" />
                <el-table-column prop="zip" label="创建时间" width="620" />
                <el-table-column fixed="right" label="操作" min-width="120">
                    <template #default>
                        <el-button link type="primary" size="small" @click="handleClick">
                            同意
                        </el-button>
                        <el-button link type="primary" size="small">拒绝</el-button>
                    </template>
                </el-table-column>
            </el-table>
        </el-card>
    </div>
  </div>
</template>


<style lang="scss" scoped>
    .flex-row{
        display: flex;
        flex-direction: row;
    }
    .cus-header{
        .search{
            display: flex;
            flex-direction: row;
        }
    }
    .cus-body{
        margin-top: 15px;
    }
</style>